import request from '@/utils/request.js'
const PATH = '/user/sights'

// 获取景点列表
export const getSightsList = ({ page, pageSize, name }) =>
  request.get(PATH + '/page', {
    params: {
      page,
      pageSize,
      name
    }
  })

// 更新浏览量
export const addViews = ({ id }) => request.put(PATH + `/addViews/${id}`)

// 获取景点详情
export const getSightsDetail = ({ id }) =>
  request.get(PATH + '/getSightsDetail', { params: { id } })
